package com.mdlaser.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author mdlaser
 * @since 2024-04-05
 */
@Getter
@Setter
@TableName("sys_resource")
@Schema(name = "Resource", description = "$!{table.comment}")
public class Resource implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "名称")
    @TableField("name")
    private String name;

    @Schema(description = "权限")
    @TableField("permission")
    private String permission;

    @Schema(description = "类型：1-菜单 2-按钮 3-接口")
    @TableField("type")
    private Integer type;

    @Schema(description = "排序")
    @TableField("sort")
    private Integer sort;

    @Schema(description = "菜单路径")
    @TableField("path")
    private String path;

    @Schema(description = "图标")
    @TableField("icon")
    private String icon;

    @Schema(description = "菜单组件")
    @TableField("component")
    private String component;

    @Schema(description = "菜单外连接")
    @TableField("is_link")
    private String isLink;

    @Schema(description = "菜单是否隐藏")
    @TableField("is_hide")
    private Integer isHide;

    @Schema(description = "菜单是否全屏")
    @TableField("is_full")
    private Integer isFull;

    @Schema(description = "菜单是否固定")
    @TableField("is_affix")
    private Integer isAffix;

    @Schema(description = "菜单是否进行路由缓存")
    @TableField("is_cache")
    private Integer isCache;

    @Schema(description = "父级id")
    @TableField("parent_id")
    private Integer parentId;

    @Schema(description = "状态 1-可用 2-不可用")
    @TableField("status")
    private Integer status;
}
